package org.tea.application.app;

import org.cef.browser.CefBrowser;
import org.springframework.stereotype.Component;
import org.tea.application.browser.BrowserFrame;
import org.tea.application.common.BrowserApplication;

import javax.annotation.Resource;

/**
 * 用于加载 JD 数据的浏览器对象
 *
 * @author lxh
 */
@Component
public class JdApplication
        extends BrowserFrame
        implements BrowserApplication {

    private static final long serialVersionUID = -2295538706810864538L;

    @Resource
    private CefBrowser browser;

    @Override
    public void loadUrl(String url) {
        browser.loadURL(url);
    }
}
